package TestPaperSystem.service.impl;

import TestPaperSystem.Dto.PaperQuAnswerDTO;
import TestPaperSystem.entity.PaperQuAnswer;
import TestPaperSystem.mapper.PaperQuAnswerMapper;
import TestPaperSystem.service.PaperQuAnswerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xwj
 * @since 2023-03-25
 */
@Service
public class PaperQuAnswerServiceImpl extends ServiceImpl<PaperQuAnswerMapper, PaperQuAnswer> implements PaperQuAnswerService {

    @Resource
    PaperQuAnswerMapper paperQuAnswerMapper;

    @Override
    public List<PaperQuAnswerDTO> listByExam(String paperId, String quId) {
        return paperQuAnswerMapper.listByExam(paperId , quId);
    }
}
